package com.wxb.aop.advice;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * describe:
 *
 * @author : 王校兵
 * @version : v1.0
 * @time : 2017-10-19 10:11
 */
@Aspect
@Component
public class HelloAdvice {

    @AfterReturning("within(com.wxb.aop..*) && @annotation(Point)")
    public void advice(JoinPoint jp) {
        Object target = jp.getTarget();
        Class targetClass = jp.getTarget().getClass();
    }

}
